<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>事件绑定</title>
</head>

<body>
<button onclick="method01()">按钮</button>
<hr>
<div id="div">
    <div>{{name}}</div>

    <button v-on:click="change">单击_改变div的内容</button>
    <button v-on:dblclick="change">双击_改变div的内容</button>

    <button @click="change">简写_改变div的内容</button>
</div>
</body>
<script src="js/vue.js"></script>
<script>
    let vm = new Vue({
        el:"#div",
        data:{
            name:"百度科技"
        },
        methods:{
            change(){
                this.name = "积云教育"
            }
        }
    });
</script>
<script>
    function method01() {
        // alert("呵呵")
        vm.name = "腾讯视频"
    }
</script>
</html>